<%@ include file="/WEB-INF/views/utils/includes.jsp"%>
<gf:layout>
    <gf:form>
    	<tu:label text="label.domain">${account.domain}</tu:label>
    	<tu:label text="label.account.mainCompany">${account.company.name}</tu:label>

    	<tu:label text="label.account.managers">
    		<span style="display: inline-flex">
	    	<tu:list items="${account.accountManagers}">
	    		<tu:list-item>
	    		    <gf:link 
		    			url="/user/${item.username}" 
		    			adminUrl="/admin/user/${account.domain}/${item.username}">
		    				${item.fullName}
		    		</gf:link>
	    		</tu:list-item>
	    	</tu:list>
	    	</span>
    	</tu:label>

    	<tu:list items="${account.accountUsers}">
    		<tu:list-item columnName="label.user.fullName">
    		    <gf:link 
	    			url="/user/${item.username}" 
	    			adminUrl="/admin/user/${account.domain}/${item.username}">
	    				${item.fullName}
	    		</gf:link>
    		</tu:list-item>
    		<tu:list-item attr="username" columnName="label.user.username"/>
    	</tu:list>
    	<tu:list items="${account.companies}">
    		<tu:list-item columnName="label.company.name">
    		    <gf:link 
	    			url="/company/${item.id}" 
	    			adminUrl="/admin/company/${item.id}">
	    				${item.name}
	    		</gf:link>
    		</tu:list-item>
    		<tu:list-item attr="fiscalNumber" columnName="label.company.fiscalNumber"/>
    	</tu:list>
    </gf:form>
</gf:layout>
